package cn.jiyun.feign;

import cn.jiyun.dao.train.TrainDTO;
import cn.jiyun.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Author 王晨
 * Date 2023/8/23
 */
@FeignClient(value = "day12train")
public interface TrainFeign {

    @RequestMapping("/train/TrainCount")
    public R TrainCount( TrainDTO trainDTO);
    @RequestMapping("/train/findCount")
    public R findCount();

    @RequestMapping("train/findTrain")
    R findTrain(@SpringQueryMap TrainDTO trainDTO);

    @RequestMapping("/train/findTrainGame")
    R findTrainGame(@SpringQueryMap TrainDTO trainDTO);

    @RequestMapping("/train/findTrainLogin")
    R findTrainLogin(@SpringQueryMap TrainDTO trainDTO);

}
